package com.daoeping.service.impl;

import java.util.List;

import com.daoeping.dao.Bzn_answercommDAO;
import com.daoeping.data.Bzn_answercomm;
import com.daoeping.data.Bzn_question;
import com.daoeping.service.Bzn_answercommService;

public class Bzn_answercommServiceImpl implements Bzn_answercommService{
	private Bzn_answercommDAO bzn_answercommDAO;
	
	public Bzn_answercommDAO getBzn_answercommDAO() {
		return bzn_answercommDAO;
	}

	public void setBzn_answercommDAO(Bzn_answercommDAO bzn_answercommDAO) {
		this.bzn_answercommDAO = bzn_answercommDAO;
	}

	@Override
	public List<Bzn_answercomm> findBzn_answercommList(Bzn_answercomm bzn_answercomm) {
		return bzn_answercommDAO.findBzn_answercommList(bzn_answercomm);
	}

	@Override
	public boolean addBzn_answercomm(Bzn_answercomm bzn_answercomm) {
		return bzn_answercommDAO.insertData(bzn_answercomm);
	}

	@Override
	public boolean delBzn_answercommByQuestionId(Bzn_question bzn_question) {
		return bzn_answercommDAO.delBzn_answercommByQuestionId(bzn_question);
	}

}
